<?php include "verifica.php"; ?>
<html>
<head>
	<title>ABR</title>
</head>
<body>
	<div class="box">

		<?php
			include "topo.php";

			include "menu.php";
		?>		

			<div class="formulario">
				<fieldset>
					<legend>Exclusão de Usuário</legend>
						<table>
							<tr>
								<th>Nome</th>
								<th>Email</th>
								<th>Remover</th>
							</tr>
							<?php 
								include "conexao.php";
								$sql_select = mysql_query("SELECT * FROM tb_usuario ORDER BY nome");
								while($linha = mysql_fetch_array($sql_select)){ 
								$pega_id = $linha['id'];
								$pega_nome = $linha['nome'];
								$pega_email = $linha['email'];

							?>
							<tr>
								<td><?php echo $pega_nome ?></td>
								<td align="center"><?php echo $pega_email ?></td>
								<td align="center"><a href="crud_usuario.php?funcao=delete&id=<?php echo $pega_id ?>"><img src="images/delete.png"></a></td>
							</tr>

							<?php } ?>

						</table>	
				</fieldset>
	</div><!--box-->
	<?php include "rodape.php"; ?>
</body>
</html>